package com.example.exceldemo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.exceldemo.entity.UserExcel;
import com.example.exceldemo.mapper.UserMapper;
import com.example.exceldemo.service.UserService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Author: yanhongwei
 * @Date: 2023/07/13 14:09:43
 * @Description: TODO
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UserExcel> implements UserService {

    @Override
    public List<UserExcel> getUserList() {
        List<UserExcel> userList = new ArrayList<>();
        UserExcel userExcel1 = new UserExcel(101L, "用户A", 21, "男", new Date());
        UserExcel userExcel2 = new UserExcel(102L, "用户B", 22, "女", new Date());
        userList.add(userExcel1);
        userList.add(userExcel2);
        return userList;
    }
}
